package router

import (
	v1 "document_manager/api/v1"
	"github.com/gin-gonic/gin"
)

func InitDocumentRouter(route *gin.Engine) {
	group := route.Group("document")
	{
		group.GET("dir", v1.GetDirFiles)
		group.GET("file", v1.GetFile)
		group.DELETE("delete", v1.DeleteFile)
		group.POST("saveText", v1.SaveTextFile)
		group.POST("upload", v1.Upload)
	}
}
